package com.facebook.imageformat;

public enum ImageFormat
{
  static
  {
    WEBP_LOSSLESS = new ImageFormat("WEBP_LOSSLESS", 1);
    WEBP_EXTENDED = new ImageFormat("WEBP_EXTENDED", 2);
    WEBP_EXTENDED_WITH_ALPHA = new ImageFormat("WEBP_EXTENDED_WITH_ALPHA", 3);
    WEBP_ANIMATED = new ImageFormat("WEBP_ANIMATED", 4);
    JPEG = new ImageFormat("JPEG", 5);
    PNG = new ImageFormat("PNG", 6);
    GIF = new ImageFormat("GIF", 7);
    BMP = new ImageFormat("BMP", 8);
    UNKNOWN = new ImageFormat("UNKNOWN", 9);
    ImageFormat[] arrayOfImageFormat = new ImageFormat[10];
    arrayOfImageFormat[0] = WEBP_SIMPLE;
    arrayOfImageFormat[1] = WEBP_LOSSLESS;
    arrayOfImageFormat[2] = WEBP_EXTENDED;
    arrayOfImageFormat[3] = WEBP_EXTENDED_WITH_ALPHA;
    arrayOfImageFormat[4] = WEBP_ANIMATED;
    arrayOfImageFormat[5] = JPEG;
    arrayOfImageFormat[6] = PNG;
    arrayOfImageFormat[7] = GIF;
    arrayOfImageFormat[8] = BMP;
    arrayOfImageFormat[9] = UNKNOWN;
  }

  public static String getFileExtension(ImageFormat paramImageFormat)
    throws UnsupportedOperationException
  {
    switch (1.$SwitchMap$com$facebook$imageformat$ImageFormat[paramImageFormat.ordinal()])
    {
    default:
      throw new UnsupportedOperationException("Unknown image format " + paramImageFormat.name());
    case 1:
    case 2:
    case 3:
    case 4:
    case 5:
      return "webp";
    case 6:
      return "jpeg";
    case 7:
      return "png";
    case 8:
      return "gif";
    case 9:
    }
    return "bmp";
  }

  public static boolean isWebpFormat(ImageFormat paramImageFormat)
  {
    return (paramImageFormat == WEBP_SIMPLE) || (paramImageFormat == WEBP_LOSSLESS) || (paramImageFormat == WEBP_EXTENDED) || (paramImageFormat == WEBP_EXTENDED_WITH_ALPHA) || (paramImageFormat == WEBP_ANIMATED);
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.facebook.imageformat.ImageFormat
 * JD-Core Version:    0.6.2
 */